package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.system.vo.NameVo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
 * 投递记录对象 applications
 *
 * @author ruoyi
 * @date 2024-11-02
 */
public class Applications extends NameVo {
    private static final long serialVersionUID = 1L;

    /** 投递id */
    @Excel(name = "投递id")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 职位id */
    @Excel(name = "职位id")
    private Long jobId;


    /** 投递状态 */
    @Excel(name = "投递状态")
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /** 地址 */
    @Excel(name = "地址")
    private String fileurl;
    public void setFileurl(String fileurl)
    {
        this.fileurl = fileurl;
    }

    public String getFileurl()
    {
        return fileurl;
    }

    public Date getCreateTime() {
        return createTime;
    }



    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setJobId(Long jobId)
    {
        this.jobId = jobId;
    }

    public Long getJobId()
    {
        return jobId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("jobId", getJobId())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("fileurl", getFileurl())
                .toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Applications that = (Applications) o;
        return Objects.equals(id, that.id) && Objects.equals(userId, that.userId) && Objects.equals(jobId, that.jobId) && Objects.equals(status, that.status) && Objects.equals(createTime, that.createTime) && Objects.equals(fileurl, that.fileurl);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, userId, jobId, status, createTime, fileurl);
    }
}
